﻿using System.Windows;
using System.Windows.Controls;

namespace Steer
{
    public class MyUserControl:UserControl
    {
        public bool IsFocus = true;

        protected override void OnLostFocus(RoutedEventArgs e)
        {
            IsFocus = false;
            base.OnLostFocus(e);
        }

        protected override void OnGotFocus(RoutedEventArgs e)
        {
            IsFocus = true;
            base.OnGotFocus(e);
        }
    }
}
